package cn.com.artemis.biz.steinsggs.web;

public interface Constants {

    /**
     * 用户session缓存key
     */
    String USER_SESSION_KEY = "user_key";
    
    //返回参数
    String MSG_CODE="code";
    String MSG_DESC="desc";
    String MSG_DATA="data";
    int SUCCESS_CODE = 200;
    int ERROR_CODE = 500;

    Integer DEFAULT_PAGE_SIZE = 20;


    interface Messages {
        String PARAM_EMPTY = "参数不能为空";
        String PARAM_ERROR = "参数错误";
        String MAIL_NOT_FOUND = "用户邮箱未找到";
        String MAIL_TO_USER_NOT_FOUND = "接受人未找到";
        String SUCCESS = "success";
    }

    interface DictCodes {
        String SEX = "SEX";
        String USER_TITLE = "USER_TITLE";
        String USER_GROUP = "USER_GROUP";
        String USER_ACCOUNT_STATUS = "USER_ACCOUNT_STATUS";
        String USER_STATUS = "USER_STATUS";
        String USER_DEAL_TIMES = "USER_DEAL_TIMES";
        String USER_BALANCE_TYPE = "USER_BALANCE_TYPE";

        String ADVISERS = "ADVISERS";
        String COMMODITY = "COMMODITY";
        String TRADE_EXPIRY_DATE = "TRADE_EXPIRY_DATE";
    }

    interface LogDetailFormat {
        String ACCOUNT_CREATE = "Account Created: %s (%s)";
        String ACCOUNT_LOGIN = "User signs in";
        String TRADE = "%s %s Order added(%s)";
        String FUNDING = "%s %s Added (%s)";
    }


}
